linux: Fix PV-on-HVM crash when installing PV drivers on native system.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 25 May 2007 09:17:43 +0000 (10:17 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 25 May 2007 09:17:43 +0000 (10:17 +0100)
From: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe_backend.c

index d16d67602a5bc415259d729e21da79eeba6fddd0..c7f8c1d836251a2fe620c4698452b939e2798cdb 100644 (file)
@@ -172,6 +172,7 @@ static struct xen_bus_type xenbus_frontend = {
        .levels = 2,            /* device/type/<id> */
        .get_bus_id = frontend_bus_id,
        .probe = xenbus_probe_frontend,
+       .error = -ENODEV,
        .bus = {
                .name     = "xen",
                .match    = xenbus_match,
index 0b92c428607042f17d0d92e9eb24f23c7b0ed245..e8007bdef1ef370e38d7d69485f5d245cb56b0c6 100644 (file)
@@ -115,6 +115,7 @@ static struct xen_bus_type xenbus_backend = {
        .levels = 3,            /* backend/type/<frontend>/<id> */
        .get_bus_id = backend_bus_id,
        .probe = xenbus_probe_backend,
+       .error = -ENODEV,
        .bus = {
                .name     = "xen-backend",
                .match    = xenbus_match,